<template>
  <div class="header">
      {{title}}
      <span class="loginBox">admin | <a @click="outLogin">退出</a></span>
  </div>
</template>

<script>
export default {
  name: 'header',
  data () {
    return {
      title: '商家后台管理'
    }
  },
  methods:{
  	outLogin(){
  		document.cookie = "admin="+"; " +"-1";
      //this.$store.dispatch("closelogin");
      this.$router.push({ path: '/'})
      window.location.reload();
  	}
  }
}
</script>

